if
and else
¶if
¶else
¶elif
¶turns.py
¶holes.py
¶Bit is in the pipes, and the pipes have holes. Bit's job is to mark where the holes are so someone else can fix them.
fly.py
¶Bit is out flying around.
When Bit finds a blue square, he turns left.
When Bit finds a green square, he turns right.
When Bit finds a red square, he stops.
Now write a single function that can allow Bit to travel in either direction.
if
, else
, and elif
while
with inner if